<template>
  <div>
    <div>count={{ value }}</div>
    <button @click="$emit('input',1)">+1</button>
    <button @click="$emit('input',2)">+N</button>
    <input ref="inputRef">
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Number,
      required: true
    }
  },
  methods: {
    focus() {
      this.$refs.inputRef.focus()
    }
  }
}
</script>

<style>

</style>
